//
//  FMDatabaseQueue+Helper.h
//  WeChatMonitor
//
//  Created by TerryChe on 2016/11/24.
//  Copyright © 2016年 TerryChe. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDatabaseQueue.h"

@interface FMDatabaseQueue (Helper)

/**
 *  当前是否在事务中
 *
 *  @return 返回是否在事务中
 */
-(BOOL)isInTransaction;

- (void)inWrtite:(void (^)(FMDatabase *db, BOOL *rollback))block;

- (void)inReader:(void (^)(FMDatabase *db))block;

@end
